package org.car.world.wx.api.MediaPlayer.service;

public class AudioPlayer  implements MediaPlayer{

	 MediaAdapter mediaAdapter; 
	
	@Override
	public void play(String audioType, String fileName) {
		if(audioType.equalsIgnoreCase("mp3")){
			System.out.println("mp3 ..... mp3 ... mp3");
		}
		else if (audioType.equalsIgnoreCase("vlc")|| audioType.equalsIgnoreCase("mp4")){
			mediaAdapter = new MediaAdapter(audioType);
			mediaAdapter.play(audioType, fileName);
		}else {
			System.out.println("error:"+audioType);
		}
	}

}
